package com.alog.storage.net;

import android.app.Activity;
import com.alog.storage.Contants;
import com.alog.storage.utils.ThreadPoolUtil;
import java.util.HashMap;

public class PayAPI {

    public static void alipayPay(Activity context, String orderInfo, BaseAPI.APICallback callback) {
        ThreadPoolUtil.execute(new PayRunnable(context, Contants.API_ID_PAY_ALIPAY, orderInfo, callback));
    }

    public static void wxPay(Activity context, HashMap<String, String> orderInfo, BaseAPI.APICallback callback) {
        ThreadPoolUtil.execute(new PayRunnable(context, Contants.API_ID_PAY_WX, orderInfo, callback));
    }

    public static void unionpayPay(Activity context, String orderInfo, BaseAPI.APICallback callback) {
        ThreadPoolUtil.execute(new PayRunnable(context, Contants.API_ID_PAY_UNIONPAY, orderInfo, callback));
    }

}
